<%@ page language="java" pageEncoding="UTF-8"%>
<div align="center" style="padding:5px">
<script type="text/javascript">
 $(function(){
	 $('#wd_edit_dept').combotree({
			lines:true,
			url:'deptAction!do_combotree.action',
			panelHeight:200,
			required:true,
			editable:false,
			idField:'id',
			textField:'text',
			parentField:'pid',
			//禁止选择叶子节点
			 onBeforeSelect: function(node) {
		            if ($(this).tree('isLeaf', node.target)) {
		                return false;
		            }
		        },
		        onClick: function(node) {
		            if ($(this).tree('isLeaf', node.target)) {
		                $('#wd_edit_dept').combo('showPanel');
		            }
		        }
		}); 
 });
</script>
	<form method="post" id="wdxx_edit_form">
		<table  class="t2">
			<tr>
				<th >所属单位：</th>
				<td ><input type="text" id="wd_edit_dept"  name="deptid"  style="width:250px" />
				</td>
			</tr>
			<tr>
				<th width="80" >机构号：</th>
				<td width="260"><input type="text" name="cjgh" class="input_readonly" readonly="readonly" style="width:250px"/>
				</td>
			</tr>
			<tr>
				<th>网点名称：</th>
				<td ><input type="text" name="cname" class="easyui-validatebox" data-options="required:'true',missingMessage:'请填写网点名称！'"  style="width:250px"/>
				</td>
			</tr>
		</table>
	</form>
</div>